﻿import request from '/@/utils/request';
enum Api {
  AddApprovalflowGroup = '/api/approvalflowGroup/add',
  DeleteApprovalflowGroup = '/api/approvalflowGroup/delete',
  UpdateApprovalflowGroup = '/api/approvalflowGroup/update',
  PageApprovalflowGroup = '/api/approvalflowGroup/page',
  DetailApprovalflowGroup = '/api/approvalflowGroup/detail',
  GetFlowGroupTreeList='/api/approvalflowGroup/FlowGroupTreeList'
}

// 增加审批流类别
export const addApprovalflowGroup = (params?: any) =>
	request({
		url: Api.AddApprovalflowGroup,
		method: 'post',
		data: params,
	});

// 删除审批流类别
export const deleteApprovalflowGroup = (params?: any) => 
	request({
			url: Api.DeleteApprovalflowGroup,
			method: 'post',
			data: params,
		});

// 编辑审批流类别
export const updateApprovalflowGroup = (params?: any) => 
	request({
			url: Api.UpdateApprovalflowGroup,
			method: 'post',
			data: params,
		});

// 分页查询审批流类别
export const pageApprovalflowGroup = (params?: any) => 
	request({
			url: Api.PageApprovalflowGroup,
			method: 'post',
			data: params,
		});

// 详情审批流类别
export const detailApprovalflowGroup = (id: any) => 
	request({
			url: Api.DetailApprovalflowGroup,
			method: 'get',
			data: { id },
		});
export const getFlowGroupTreeList = (params?: any) => 
	request({
			url: Api.GetFlowGroupTreeList,
			method: 'get',
			data: params,
	});

